<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:sec="http://www.springframework.org/security/facelets/tags">

	
		<h:form id="formMenu">	
			      <p:menubar autoSubmenuDisplay="false" style="border: none;">
    				     <p:submenu label="Secoes" style="z-index:10000;" >
    				      <p:menuitem value="Home" icon="ui-icon-home" url="/pages/home.jsf" />
    				     <p:submenu label="Admin">  
						      <p:menuitem value="Categorias" url="/pages/admin/categoria/categoriaPage.jsf" />
					     </p:submenu>
					     <p:submenu label="Conta">  
						      <p:menuitem value="Atualizar Saldo" url="/pages/user/conta/contaPage.jsf" />
					     </p:submenu>	
					     <p:menuitem value="Lancementos" url="/pages/lancamento/lancamentoPage.jsf" />
					</p:submenu>
				    <f:facet name="options">
					<h:panelGroup>
						<div class="user">
							<!-- <span>#{msg.global_user_logged} <h:outputText value="#{request.remoteUser}!"/></span> -->
							<span>Usuário: <h:outputText value="#{userbean.nome}" /></span> | 
							<a	title="Logout" href="#{facesContext.externalContext.requestContextPath}/j_spring_security_logout">logout</a>
						</div>
					</h:panelGroup>
				    </f:facet>
			</p:menubar>
		</h:form>
	
</ui:composition>